﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Nuzzle.Protocol.Messages.Connection
{
    public class ServersListMessage : NetworkMessage
    {
        public ServersListMessage(List<Types.Connection.GameServerInformations> servers)
            : base(NetworkMessageID.ServersListMessage)
        {
            base.WriterBuffer.writeShort((short)servers.Count);
            servers.ForEach(x => x.Serialize(this));
        }
    }
}
